package com.ky.course.controller;




import com.ky.common.param.CourseVo;
import com.ky.common.vo.R;
import com.ky.course.service.CourseService;
import com.ky.gp.common.param.CourseMsg;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 课程表 前端控制器
 * </p>
 *
 * @author zpa
 * @since 2024-06-15
 */
@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private CourseService courseService;

    @RequestMapping("/getCourseList")
    public R getCourseList(@RequestBody CourseMsg courseMsg) {
         List<CourseVo> list = courseService.getCourseList(courseMsg);

         return R.ok(list);
    }

}

